package com.hutu.erp.catalog.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品参数对象 catalog_specification
 * 
 * @author ruoyi
 * @date 2021-05-11
 */
public class Specification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识符 */
    private Long specificationId;

    /** 名称 */
    @Excel(name = "名称")
    private String specificationName;

    /** 简称 */
    @Excel(name = "简称")
    private String alternativeName;

    /** 查询码 */
    @Excel(name = "查询码")
    private String lookup;

    /** 代码 */
    @Excel(name = "代码")
    private String specificationCode;

    /** 已删除 */
    @Excel(name = "已删除")
    private Integer deleted;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer displayOrder;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setSpecificationId(Long specificationId) 
    {
        this.specificationId = specificationId;
    }

    public Long getSpecificationId() 
    {
        return specificationId;
    }
    public void setSpecificationName(String specificationName) 
    {
        this.specificationName = specificationName;
    }

    public String getSpecificationName() 
    {
        return specificationName;
    }
    public void setAlternativeName(String alternativeName) 
    {
        this.alternativeName = alternativeName;
    }

    public String getAlternativeName() 
    {
        return alternativeName;
    }
    public void setLookup(String lookup) 
    {
        this.lookup = lookup;
    }

    public String getLookup() 
    {
        return lookup;
    }
    public void setSpecificationCode(String specificationCode) 
    {
        this.specificationCode = specificationCode;
    }

    public String getSpecificationCode() 
    {
        return specificationCode;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setDisplayOrder(Integer displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Integer getDisplayOrder() 
    {
        return displayOrder;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("specificationId", getSpecificationId())
            .append("specificationName", getSpecificationName())
            .append("alternativeName", getAlternativeName())
            .append("lookup", getLookup())
            .append("specificationCode", getSpecificationCode())
            .append("deleted", getDeleted())
            .append("displayOrder", getDisplayOrder())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
